package name.matthewgreet.example3.common; import java.io.Serializable; /** * <P>Strategy for finding the size of a list of records. This is useful for pages using pagination with some instance * of {@link PageByIndexRangeFinder} lazy loading the current page.</P> */ @FunctionalInterface public interface ListSizeFinder extends Serializable { /** * Returns size of list records according to implementing search criteria. */ public int getSize() throws Exception; }